﻿using DAO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BUS
{
   public  class LensBUS
    {
       LensDAO db = new LensDAO();
        public List<Lens> GetListAll()
        {
            return db.GetListAll();
        }
        public List<Lens> GetListAll_Sort()
        {
            return db.GetListAll_Sort();
        }
        public List<Lens> GetListTop10()
        {
            return db.GetListTop10();
        }
        public Lens GetById(int id)
        {
            return db.GetById(id);
        }

        public List<Lens> GetListSearch(string tukhoa)
        {
            return db.GetListSearch(tukhoa);
        }

        public bool Insert(Lens c)
        {
            return db.Insert(c);
        }

        public bool Edit(Lens ca)
        {
            return db.Edit(ca);
        }

        public bool Delete(int id)
        {
            return db.Delete(id);
        }
    }
}
